var algorithm = require("../src/hoeffding")
  , util = require("util");

function createDataSet() {
  return [[1, 1, 'yes'],
          [1, 1, 'yes'],
          [1, 0, 'no'],
          [0, 1, 'no'],
          [0, 1, 'no'],
          [1, 0, 'yes']];
}

console.log('The trained decision tree: ');

var tree = algorithm.trainDecisionTree(createDataSet());
console.log(util.inspect(tree, true, Number.MAX_VALUE));

